package com.mail.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mail.dubbo.mapper.UmsMemberLevelMapper;
import com.mail.model.db.UmsMemberLevel;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author gaocq
 * @version 1.0.0
 * @Program hmsc
 * @date 2022/6/24 14:38
 */
@DubboService
public class UmsMemberLevelApiImpl implements UmsMemberLevelApi{
    @Autowired
    private UmsMemberLevelMapper memberLevelMapper;

    @Override
    public List<UmsMemberLevel> list(Integer defaultStatus) {
        LambdaQueryWrapper<UmsMemberLevel> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(UmsMemberLevel::getDefaultStatus, defaultStatus);
        return memberLevelMapper.selectList(wrapper);
    }
}
